#include<stdio.h>
int main()
{
	char str;
	int a,b,c;
	scanf("%c %d %d",&str,&a,&b);
	if(a+b)
	c=a+b;
	if(a*b)
	c=a*b;
	printf("%d",c);
	return 0;
 } 
